﻿namespace Core
{
    public static class L
    {
        private static TblLanguage tbl;
        public static string T(string text)
        {
            if (tbl == null)
            {
                tbl = Context.Sys.Table.GetSO<TblLanguage>();
            }
            if (tbl != null)
            {
                return tbl.Translate(text);
            }
            return text;
        }
    }
}
